package com.zmn.oms.dubbo.interfaces.normal.master;

import com.zmn.common.dto2.ResponseDTO;
import com.zmn.oms.common.dio.attachment.ModifyOrderWorkAttachmentDIO;
import com.zmn.oms.common.dio.attachment.OrderWorkAttachmentDIO;
import com.zmn.oms.common.dro.attachment.WorkAttachmentDRO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;

import javax.validation.constraints.NotNull;

/**
 * 类描述: 工程师照片附件 查询Dubbo接口
 *
 * @author: liudi
 * @since: 2022/03/29 14:07
 */
@Api(
		value = "工程师照片附件查询",
		tags = {"工程师照片查询"}
)
public interface MasterOrderAttachmentListRemoteService {

	/**
	 * 查询工单照片附件列表
	 *
	 * @param orderWorkAttachmentDIO
	 * @return
	 */
	@ApiOperation(
			value = "根据渠道配置查询师傅工单照片附件",
			response = ResponseDTO.class,
			tags = {"根据渠道配置查询师傅工单照片附件"}
	)
	ResponseDTO<WorkAttachmentDRO> listOrderWorkAttachmentByQuery(@NotNull(message = "入参不能为空")
	                                                              @ApiParam(value = "入参", required = true)
			                                                              OrderWorkAttachmentDIO orderWorkAttachmentDIO);

	/**
	 * 保存工单附件
	 *
	 * @param modifyOrderWorkAttachmentDIO
	 * @return
	 */
	@ApiOperation(value = "保存工单附件", response = ResponseDTO.class)
	ResponseDTO modifyOrderWorkAttachment(@NotNull(message = "入参不能为空")
	                                      @ApiParam(value = "附件", required = true)
			                                      ModifyOrderWorkAttachmentDIO modifyOrderWorkAttachmentDIO);
}
